package com.psbc.springbootstudydemo1.controller;

import com.psbc.springbootstudydemo1.config.WXConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("freemarker")
public class FreeMarkerController {
    @Autowired
    private WXConfig  wxConfig;
    @GetMapping("test")
    public String index(Model model){
        model.addAttribute("msg",wxConfig);
        return "fm/user/index";
    }
}
